home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Your Choice 3
/
Your Choice Software Collection 3.iso
/
service
/
foxpro2
/
report.spr
< prev
next >
Wrap
Text File
|
1994-01-01
|
10KB
|
285 lines
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ 07/24/91 REPORT.SPR 16:03:25 ║
* ║ ║
* ╟─────────────────────────────────────────────────────────╢
* ║ ║
* ║ Systems Group ║
* ║ ║
* ║ Copyright (c) 1991 Fox Software ║
* ║ 134 West South Boundary ║
* ║ Perrsyburg, OH 43551 ║
* ║ ║
* ║ Description: ║
* ║ This program was automatically generated by GENSCRN. ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
#REGION 0
REGIONAL m.currarea, m.talkstat, m.compstat
IF SET("TALK") = "ON"
SET TALK OFF
m.talkstat = "ON"
ELSE
m.talkstat = "OFF"
ENDIF
m.compstat = SET("COMPATIBLE")
SET COMPATIBLE FOXPLUS
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ Window definitions ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
IF NOT WEXIST("_pxe0yeynw")
DEFINE WINDOW _pxe0yeynw ;
FROM INT((SROW()-13)/2),INT((SCOL()-51)/2) ;
TO INT((SROW()-13)/2)+12,INT((SCOL()-51)/2)+50 ;
FLOAT ;
NOCLOSE ;
SHADOW ;
DOUBLE ;
COLOR SCHEME 5
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ REPORT Setup Code - SECTION 2 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
private x,repotag
dime rtags(100)
rtags(1) = "Record#"
for i = 2 to 256
if len(tag(i-1)) = 0
i = i - 1
dimension rtags(i)
exit
else
rtags(i) = tag(i-1)
endif
endfor
repotag = iif(len(order())=0,"Record#",order())
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ REPORT Screen Layout ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
IF WVISIBLE("_pxe0yeynw")
ACTIVATE WINDOW _pxe0yeynw SAME
ELSE
ACTIVATE WINDOW _pxe0yeynw NOSHOW
ENDIF
@ 2,3 SAY "Order By:"
@ 4,36 GET reportok ;
PICTURE "@*VT \!\<Report;\?\<Cancel" ;
SIZE 1,11,2 ;
DEFAULT 1
@ 1,15 GET repotag ;
PICTURE "@^" ;
FROM rtags ;
SIZE 3,12 ;
DEFAULT 1 ;
COLOR SCHEME 5, 6
@ 0,1 TO 10,33
@ 7,2 GET toprint ;
PICTURE "@*C To Print" ;
SIZE 1,12 ;
DEFAULT 0 ;
VALID _pxe0yezeg()
@ 8,2 GET tofile ;
PICTURE "@*C To File" ;
SIZE 1,11 ;
DEFAULT 0 ;
VALID _pxe0yezni()
@ 6,2 GET Preview ;
PICTURE "@*C Preview" ;
SIZE 1,11 ;
DEFAULT 0 ;
VALID _pxe0yezz9()
@ 8,15 GET printfile ;
SIZE 1,17 ;
DEFAULT " " ;
VALID _pxe0yf085()
IF NOT WVISIBLE("_pxe0yeynw")
ACTIVATE WINDOW _pxe0yeynw
ENDIF
READ CYCLE MODAL ;
DEACTIVATE _pxe0yf0h4()
RELEASE WINDOW _pxe0yeynw
#REGION 0
IF m.talkstat = "ON"
SET TALK ON
ENDIF
IF m.compstat = "ON"
SET COMPATIBLE ON
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ REPORT Cleanup Code ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
if reportok = 1
x = alltrim(repotag)
if x = "Record#"
set order to
else
set order to (x)
endif
endif
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _PXE0YEZEG toprint VALID ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Screen: REPORT, Record Number: 6 ║
* ║ Variable: toprint ║
* ║ Called By: VALID Clause ║
* ║ Object Type: Check Box ║
* ║ Snippet Number: 1 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _pxe0yezeg && toprint VALID
#REGION 1
if toprint = 1
show get preview disabled
show get tofile disabled
show get printfile disabled
else
show gets enabled
endif
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _PXE0YEZNI tofile VALID ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Screen: REPORT, Record Number: 7 ║
* ║ Variable: tofile ║
* ║ Called By: VALID Clause ║
* ║ Object Type: Check Box ║
* ║ Snippet Number: 2 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _pxe0yezni && tofile VALID
#REGION 1
if tofile = 1
printfile = putfile('Print File:',alltrim(printfile),'TXT')
if empty(printfile)
tofile = 0
show gets enabled
else
show get toprint disabled
show get preview disabled
endif
show get printfile
else
printfile = putfile('Print File:',alltrim(printfile),'TXT')
if empty(printfile)
tofile = 0
show get tofile
endif
show gets enabled
endif
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _PXE0YEZZ9 Preview VALID ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Screen: REPORT, Record Number: 8 ║
* ║ Variable: Preview ║
* ║ Called By: VALID Clause ║
* ║ Object Type: Check Box ║
* ║ Snippet Number: 3 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _pxe0yezz9 && Preview VALID
#REGION 1
if preview = 1
show get toprint disabled
show get tofile disabled
show get printfile disabled
else
show gets enabled
endif
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _PXE0YF085 printfile VALID ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Screen: REPORT, Record Number: 9 ║
* ║ Variable: printfile ║
* ║ Called By: VALID Clause ║
* ║ Object Type: Field ║
* ║ Snippet Number: 4 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _pxe0yf085 && printfile VALID
#REGION 1
if empty(printfile)
tofile = 0
show gets enabled
else
show get toprint disabled
show get preview disabled
tofile = 1
show get tofile
endif
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _PXE0YF0H4 Read Level Deactivate ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Screen: REPORT ║
* ║ Called By: READ Statement ║
* ║ Snippet Number: 5 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _pxe0yf0h4 && Read Level Deactivate
*
* Deactivate Code from screen: REPORT
*
#REGION 1
?? chr(7)
return .f.